﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CKEditor.ascx.cs" Inherits="CKEditor" %>
<script language="javascript" type="text/javascript" src='<%=ResolveUrl("~/Scripts/ckeditor/ckeditor.js")%>'></script>

<asp:TextBox ID="mckeditor" runat="server" TextMode="MultiLine"></asp:TextBox>
<asp:Label ID="lblName" runat="server"></asp:Label>

<script type="text/javascript">
    CKEDITOR.replace('<%= mckeditor.ClientID%>',
                  {
                      toolbar: '<%= Toolbar %>',
                      filebrowserBrowseUrl: '<%=ResolveUrl("~/Scripts/ckfinder/ckfinder.html")%>',
                      filebrowserImageBrowseUrl: '<%=ResolveUrl("~/Scripts/ckfinder/ckfinder.html?Type=Images")%>',
                      filebrowserFlashBrowseUrl: '<%=ResolveUrl("~/Scripts/ckfinder/ckfinder.html?Type=Flash")%>',
                      filebrowserUploadUrl: '<%=ResolveUrl("~/Scripts/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files")%>',
                      filebrowserImageUploadUrl: '<%=ResolveUrl("~/Scripts/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images")%>',
                      filebrowserFlashUploadUrl: '<%=ResolveUrl("~/Scripts/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash")%>'
                  });
</script>